﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System.ComponentModel;

namespace Pangeo.Admin.Models.HrmDb.Dto
{
    /// <summary>
    /// 加班明细
    /// </summary>
    public class TmAbsenceOfThreeItem
    {
        [Description("工号")]
        public string people_no { get; set; }

        [Description("姓名")]
        public string people_name { get; set; }

        [Description("加班ID")]
        [BsonId]
        public ObjectId _id { get; set; }

        [Description("加班打卡开始时间")]
        public DateTime work_on_time { get; set; }

        [Description("加班打卡结束时间")]
        public DateTime work_off_time { get; set; }

        [Description("加班时长")]
        public double total_time { get; set; }

        [Description("夜班时长")]
        public double night_time { get; set; }

        [Description("状态")]
        public string conclusion { get; set; }

        public bool is_used { get; set; }

        /// <summary>
        /// 是否已计算过
        /// </summary>
        public bool is_calc { get; set; }
    }
}
